package com.dict.service;

import java.util.List;
import java.util.Map;

import com.treegrid.Item;

public interface DictionaryService {
	public List<Map<String, Object>> getItems(int page, int rows);
	
	public List<Map<String, Object>> getItemByPid(int pid);
	
	public boolean hasChild(int id);
	
	public int getRows();
	
//	public Map<String, Object> getItemByName(String name);
	
	public Map<String, Object> addItem(Map<String, String> item);
	
	public Map<String, Object> updateItem(Map<String, String> item);
	
	public boolean removeItem(String id);

	public List<Map<String, Object>> searchItem(String name, String value);
	
	public List<Map<String, Object>> moveUp(int id, String path, int sort);
	public List<Map<String, Object>> moveDown(int id, String path, int sort);
}
